package day4;

/**
 * 描述所有学生的共同特征，学号、姓名、年龄、性别
 * 作为一个人，他还有很多其他的特征，但是作为一个学生当前值关心这些
 * 实体类
 */
public class Student {
    // 属性(静)
    int id;
    boolean success;
    String name;
    int age;

    // 引用数据类型，默认值都是null
    String gender;
    int[] array;
    Teacher[] teachers;
    Teacher teacher;

    // 方法（动）
    public void study() {
        System.out.println("id是"+id+"，年龄是"+age+"的"+name+"正在学习");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int[] getArray() {
        return array;
    }

    public void setArray(int[] array) {
        this.array = array;
    }

    public Teacher[] getTeachers() {
        return teachers;
    }

    public void setTeachers(Teacher[] teachers) {
        this.teachers = teachers;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }
}
